package gcosc.fun.hly.fastsso.service;


import com.baomidou.mybatisplus.extension.service.IService;
import gcosc.fun.hly.fastsso.domain.Bo.PageQuery;
import gcosc.fun.hly.fastsso.domain.SsoRealm;
import gcosc.fun.hly.fastsso.domain.SsoRole;
import gcosc.fun.hly.fastsso.result.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 领域Service接口
 *
 * @author ruoyi
 * @date 2023-12-30
 */
public interface ISsoRealmService extends IService<SsoRealm> {

    /**
     * 查询领域
     */
    SsoRealm queryById(Long id);

    /**
     * 查询领域列表
     */
    TableDataInfo<SsoRealm> queryPageList(SsoRealm bo, PageQuery pageQuery);

    /**
     * 查询领域列表
     */
    List<SsoRealm> queryList(SsoRealm bo);

    /**
     * 新增领域
     */
    Boolean insertByBo(SsoRealm bo);

    /**
     * 修改领域
     */
    Boolean updateByBo(SsoRealm bo);

    /**
     * 校验并批量删除领域信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    boolean isRealm(String realm);
}
